<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 


 



{template 'header.html'}



<div class="container guestbook"> 
	<div class="main">
    	<div class="mod">
        	<div class="head">签写留言</div>
            <div class="body">
            	
                
                 <form name="myform" method="post" action="{url("?module=$module&action=post")}">
                    <table cellspacing="3" cellpadding="3" class="table_form">
                      <tbody>
                        <tr>
                          <th width="223"><font color="red">*</font>&nbsp;姓　名：</th>
                          <td width="864" colspan="2"><input name="guestbook[username]" type="text" size="25" value="{$_nickname}" require="true" datatype="require" msg="<font color='red'>姓名不能为空</font>"></td>
                        </tr>
                
                
                        <tr>
                          <th><font color="red">*</font>&nbsp;标　题：</th>
                            <td colspan="2"><input name="guestbook[title]" type="text" id="guestbook[title]" size="40" require="true" datatype="require" msg="<font color='red'>标题不能为空</font>"></td>
                        </tr>
                
                        <tr>
                          <th><font color="red">*</font>&nbsp;内　容：<br /><span id="contentmsg"></span></th>
                            <td  colspan="2">
                            <textarea name="guestbook[content]" id="content" cols="80" rows="10" require="true" datatype="require" msg="<font color='red'><br>内容不能为空</font>" msgid="contentmsg"></textarea>
                            {form::editor('content', 'basic', 500, 300)} </td>
                        </tr>
                        <tr>
                          <th><font color="red">*</font>&nbsp;验证码：</th>
                            <td  colspan="2"><!--<input name="checkcodestr" type="text" size="4" require="true" datatype="require" msg="验证码不能为空">
                            <img src="misc/checkcode/checkcode.php" id="checkcode" onClick="this.src='misc/checkcode/checkcode.php?id='+Math.random()*5;" style="cursor:pointer;" alt="验证码,看不清楚?请点击刷新验证码" align="absmiddle"/>-->
                            
                            {form::checkcode('checkcodestr', 6)}
                            </td>
                        </tr>
                        <tr>
                          <th>隐　藏：</th>
                            <td  colspan="2"><input type="radio" name="guestbook[hidden]" value="1" style="border:0">是
                            <input type="radio" name="guestbook[hidden]" value="0" checked style="border:0">否</td>
                        </tr>
                        <tr>
                          <td colspan="2"><input type="checkbox" name="showdetail" id="showdetail" value="1" class="radio" />
                          填写联系方式 </td>        
                          <script language="javascript">
                            $('#showdetail').click(function() {
                                $('#detail').toggle();
                            });
                        </script>
                        </tr>
                      </tbody>
                      <tbody id="detail" style="display:none">
                        <tr>
                          <th>性　别：</th>
                            <td colspan="2"><input type="radio" name="guestbook[gender]"  value="1" checked style="border:0">男
                                <input type="radio" name="guestbook[gender]" value="0" style="border:0">女
                            </td>
                        </tr>
                        <tr>
                          <th>邮　件：</th>
                            <td><input name="guestbook[email]" type="text" id="guestbook[email]" size="25"></td>
                        </tr>
                        <tr>
                          <th>QQ：</th>
                            <td><input name="guestbook[qq]" type="text" id="guestbook[qq]" size="25"></td>
                        </tr>
                        <tr>
                          <th>主　页：</th>
                            <td><input name="guestbook[homepage]" type="text" id="guestbook[homepage]" size="25"></td>
                        </tr>
                      </tbody>
                      <tbody id="detail" style="display:none">
                    <tfoot>
                        <tr>
                          <th>&nbsp;</th>
                          <td><input type="submit" name="dosubmit" value=" 提交 ">
                            &nbsp;&nbsp;
                            <input type="reset" name="Reset" value=" 重置 "></td>
                        </tr>
                    </tfoot>
                    </table>
                  </form>


          </div>
        </div>
    </div>
    
    <div class="aside">
    
    	<div class="mod">
        	<div class="head">菜单</div>
            <div class="body">
            	<ol>
                	<li><a href="{url("?module=$module")}">留言板首页</a></li>
    				<li><a href="{url("?module=$module&action=post")}">签写留言</a></li>
                </ol>
            </div>
        </div>
        
    </div>
</div>



 
<SCRIPT LANGUAGE="JavaScript">
$('form').checkForm(1); 
</SCRIPT>
{template 'footer.html'}